import { ComboBox, Item, } from "@adobe/react-spectrum";



export function SelectType() {

  const data = [
    { "id": 9, "name": "AM6108" },
    { "id": 10, "name": "人体感应器" },
    { "id": 17, "name": "灯" },
    { "id": 19, "name": "人体感应器 V4" },
  ];


  return (


    <ComboBox
      name="type"
      label="类型"
      defaultItems={data}
      formValue="key"
    >
      {item => <Item>{item.name}</Item>}
    </ComboBox>

  );


}